/*获取点击A标签的超链接*/
function getTagA(){

    var tagA = document.getElementsByTagName("a");
    var top = document.documentElement.scrollTop;

    var tagAList = [];

    var length = tagA.length;

    for(var i = 0;i < length;i++){
        var a = tagA[i];
        var rect = a.getBoundingClientRect();
        var hrefStr = a.href;
        tagData={href:hrefStr, left:rect.left ,top:(rect.top-top), width:rect.width, height:(rect.height-top)};
        tagAList.push(tagData);
    }

    return JSON.stringify(tagAList);
}

